package com.system.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.system.user.entity.GasEntity;
import com.system.user.entityVO.WatchVO;
import com.system.user.entityVO.GasVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GasDao {

    List<GasEntity> selectAll();

    List<GasEntity> selectBySiteOrNumber(GasEntity gasEntity);

    List<WatchVO> queryWatchByUid(@Param("uid") Integer uid);

    GasEntity selectById(@Param("id") Integer id);

    List<GasVO> selectByUid(@Param("uId") Integer uId, @Param("number") Integer number);

    List<WatchVO> queryOtherWatch(WatchVO watchVO);

    String selectSite(@Param("bNumber") String bNumber);

    int insertGas(GasEntity gasEntity);

    int updateGas(GasEntity gasEntity);

    int deleteGas(@Param("id") Integer id);

}
